/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author lzw
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface FtdsParty extends BasicModel<FtdsParty> {
  partyJfmc?: string; // 甲方名称
  partyShxydm?: string; // 社会信用代码
  partyDz?: string; // 地址
  partyFr?: string; // 法人
  partyLxfs?: string; // 联系方式
  partyHzqx?: string; // 合作期限
  partyCzfsjdyyj?: string; // 处置方式及对应佣金
  partyZwasl?: string; // 总委案数量
  partyZwaje?: string; // 总委案金额
}

export const ftdsPartyList = (params?: FtdsParty | any) =>
  defHttp.get<FtdsParty>({ url: adminPath + '/ftds/ftdsParty/list', params });

export const ftdsPartyListData = (params?: FtdsParty | any) =>
  defHttp.post<Page<FtdsParty>>({ url: adminPath + '/ftds/ftdsParty/listData', params });

export const ftdsPartyForm = (params?: FtdsParty | any) =>
  defHttp.get<FtdsParty>({ url: adminPath + '/ftds/ftdsParty/form', params });

export const ftdsPartySave = (params?: any, data?: FtdsParty | any) =>
  defHttp.postJson<FtdsParty>({ url: adminPath + '/ftds/ftdsParty/save', params, data });

export const ftdsPartyDelete = (params?: FtdsParty | any) =>
  defHttp.get<FtdsParty>({ url: adminPath + '/ftds/ftdsParty/delete', params });
